package org.zwd.computePrice.domain;

public class TotalNumber {
	private int id;
	private String name;
	private double orderNum;
	private double saleNum;
	private double subNum;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(double orderNum) {
		this.orderNum = orderNum;
	}
	public double getSaleNum() {
		return saleNum;
	}
	public void setSaleNum(double saleNum) {
		this.saleNum = saleNum;
	}
	
	public double getSubNum() {
		subNum = orderNum - saleNum;
		return subNum;
	}
}
